home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
tiff.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
9KB
|
407 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_tiff ;
extern int DButton_tiff ;
extern int tiff_on() ;
extern int DButton_009f ;
extern int tiff_kaku() ;
extern int DButton_00a1 ;
extern int tiff_off() ;
extern int _001Message_00a5 ;
extern int _002Message_00a5 ;
extern int Message_00a5 ;
extern int Message_00a3 ;
extern int _001Message_00a3 ;
extern int TIcon_tiff[2] ;
extern int tiff_check() ;
extern int _002Message_00a3 ;
extern int _003Message_00a3 ;
extern int Text_009b ;
extern int DButton_00aa ;
extern int tiff_past() ;
extern int _001DButton_00aa ;
extern int tiff_del() ;
extern int _002DButton_00aa ;
extern int tiff_copy() ;
extern int Message_00bd ;
extern int _001Message_00bd ;
extern int _002Message_00bd ;
extern int DButton_00c3 ;
extern int tiff_fail() ;
extern int Message_00c5 ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataTIFF = { "MmiInit", 22, 0 } ;
/* Dialog_tiff */
static MMIPACKET d001 = { &Dialog_tiff,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
9, 25, 497, 332, 0, 7,15,
MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* DButton_tiff */
static MMIPACKET d002 = { &DButton_tiff,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d002d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
38, 296, 117, 321, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
tiff_on,
0x0000
} ;
/* DButton_009f */
static MMIPACKET d003 = { &DButton_009f,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
161, 297, 350, 322, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
tiff_kaku,
0x0000
} ;
/* DButton_00a1 */
static MMIPACKET d004 = { &DButton_00a1,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
390, 297, 469, 322, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
tiff_off,
0x0000
} ;
/* _001Message_00a5 */
static MMIPACKET d005 = { &_001Message_00a5,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
39, 298, 119, 321, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _002Message_00a5 */
static MMIPACKET d006 = { &_002Message_00a5,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d006d = { MS_CENTERL40 | MS_DSPONLYL40,
390, 298, 470, 322, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* Message_00a5 */
static MMIPACKET d007 = { &Message_00a5,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
169, 298, 344, 321, 0,15,15,
MS_NONEL40,
"画像データの位置指定",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* Message_00a3 */
static MMIPACKET d008 = { &Message_00a3,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
26, 41, 486, 64, 0,15,12,
MS_NONEL40,
"画像データ表示関連",
2, 16, 16,
MS_NONEL40,
10, 0
} ;
/* _001Message_00a3 */
static MMIPACKET d009 = { &_001Message_00a3,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
47, 82, 245, 105, 0,15, 0,
MS_NONEL40,
"320*240の32000色モード",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* TIcon_tiff[0] */
static MMIPACKET d010 = { &TIcon_tiff[0],
&Dialog_tiff,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d010d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
28, 84, 45, 103, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
tiff_check,
0x0000, 259, 260
} ;
/* TIcon_tiff[1] */
static MMIPACKET d011 = { &TIcon_tiff[1],
&Dialog_tiff,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d011d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
263, 84, 280, 103, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
tiff_check,
0x0000, 259, 260
} ;
/* _002Message_00a3 */
static MMIPACKET d012 = { &_002Message_00a3,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d012d = { MS_CENTERL40 | MS_DSPONLYL40,
282, 82, 482, 105, 0,15, 0,
MS_NONEL40,
"512*480の32000色モード",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* _003Message_00a3 */
static MMIPACKET d013 = { &_003Message_00a3,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d013d = { MS_CENTERL40 | MS_DSPONLYL40,
125, 115, 399, 138, 0,15,14,
MS_NONEL40,
"他の画面モードは自動的に切り換えられます",
1, 12, 12,
MS_NONEL40,
1, 0
} ;
/* Text_009b */
static MMIPACKET d014 = { &Text_009b,
&Dialog_tiff,
&MJ_TEXTL40,
OFFSET(TEXTL40),
0
} ;
static TEXTL40 d014d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
16, 181, 490, 286, 0, 7, 0,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
-1, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
4
} ;
/* DButton_00aa */
static MMIPACKET d015 = { &DButton_00aa,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d015d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
175, 155, 233, 176, 0, 7, 0,
MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
tiff_past,
0x0000
} ;
/* _001DButton_00aa */
static MMIPACKET d016 = { &_001DButton_00aa,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d016d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
241, 155, 297, 176, 0, 7, 0,
MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
tiff_del,
0x0000
} ;
/* _002DButton_00aa */
static MMIPACKET d017 = { &_002DButton_00aa,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d017d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
305, 155, 363, 176, 0, 7, 0,
MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
tiff_copy,
0x0000
} ;
/* Message_00bd */
static MMIPACKET d018 = { &Message_00bd,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d018d = { MS_CENTERL40 | MS_DSPONLYL40,
181, 158, 230, 173, 0,15, 0,
MS_NONEL40,
"挿入",
1, 12, 12,
MS_NONEL40,
12, 0
} ;
/* _001Message_00bd */
static MMIPACKET d019 = { &_001Message_00bd,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d019d = { MS_CENTERL40 | MS_DSPONLYL40,
246, 157, 294, 175, 0,15, 0,
MS_NONEL40,
"削除",
1, 12, 12,
MS_NONEL40,
12, 0
} ;
/* _002Message_00bd */
static MMIPACKET d020 = { &_002Message_00bd,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d020d = { MS_CENTERL40 | MS_DSPONLYL40,
308, 158, 361, 174, 0,15, 0,
MS_NONEL40,
"複写",
1, 12, 12,
MS_NONEL40,
12, 0
} ;
/* DButton_00c3 */
static MMIPACKET d021 = { &DButton_00c3,
&Dialog_tiff,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d021d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
18, 155, 152, 176, 0, 7, 0,
MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
tiff_fail,
0x0000
} ;
/* Message_00c5 */
static MMIPACKET d022 = { &Message_00c5,
&Dialog_tiff,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
21, 158, 148, 174, 0,15,13,
MS_NONEL40,
"画像ファィル読み込み",
1, 12, 12,
MS_NONEL40,
0, 0
} ;